Added testing of input when behavior decision is made.