Setting server variable in constructor