Improved logging / monitoring functions