Added missed require argument to facotry function