Added basic logging feature