graySingle added

Added if else based on current mode.
Merge pull request #1 from jayrambhia/patch-1

graySingle added