Added coercions to code