Added logs to the system. Fixed bug with autostart.