Use class constants for attribute types
Pass kwargs correctly to redirect function