Testing: syntax fix and error logging