Move require to proper place