Only run in server environment