Removed enum due to bugs with casting