Added basic logging mechanism