[116] Implemented commands execution code and tasks.

*** Still needs to be tested ***
* Fixed crash at startup.