Edited the compliant_behaviour(int) function
to get expected behaviour.