Fix: Needs to return 0 on success. Fixed inconsistency about whether ofcontroller is a text or int field.