Change proxy type to enum