Added idle mode managing functions