Finished groupvar int encoder.