Railpage core code