Updated dependencies
Added function dependency checks