Added ifelse and others