Adding dependency checking functionality