Server-side Main file