Started script; added dependency check function