Add power management utility functions and use sleep mode for IDLE task