Changed define to enum