Add dependency checking