Added log in stuff