Removed debug and added condition for menu value.