Added basic loging mechanism