Worked on the loggin, still not working correctly