Maximize outside of the whole procedure