Working with discrete inputs