Pre-final server-side code
Final server-side code