Fix so that plugin returns a value