Added missing dependency check.
Maybe use the right class name this time.