Manual loading of dept function implemented