Implement ECustom annotation. Closes #531