Implementation of form decoder