-Added some mode logic

- Added some logic to resumeProgram when a mode is set to a target one (ex. home).