Extract render method

Extract render method to enable rendering before any tick happens.