Added code for preferred month