Move post param loading code into constructor