Added basic logging