Added rudimentary logging for debugging purposes.