Updated log method to run on finish