Moved functions from appcontroller to Core. Also finalized the functions to working state.