Added ability to log