Added gtype so this can be checked against attribute gtype