Added some dep-related functions.