Avoid side-effect style of programming