Added papertrail logging for testing.