Rewrite, now creates a runnable jar and runs in production mode