A few minor performance tweaks, fail early stuff.
Add time taken to debug log.