Implemented autorequire functionality