Add logging (disabled by default) and time just for fun