Added logging posthooks.
Removed whitespace.