Getting rid of of if statements.