Added scheduled mode helper
Improved shell call
Improved get_current_mode()