Autorun implemented
----To be done-----
Use of internal functions for logging