Fixing ordering issue of how require dependencies are added