Removed gpolyencode because it was not used