Corrected loggign