Added logging in/out