Added option to define checking of private messages in standby mode, Code optimizations