Added support for custom vertex attributes