Added basic logger functionality