Downgrade code to run on server