Check for nil stats
Added path for past records
Use unicorn in production