Implemented logging. Attempting file name issue