Added papertrail loggin