Added SyncLocking for the Logger; fixed an input bug