Improved patient log, fixed minor bug