Added optional dependency extend