Logging added to move study script