Wrote out what is needed to handle IF