Added more functionality to the logActivity class.