Remove uneccessary branching