Dependency checking functions moved to separate file