Added a logging system (everything customisable)!