Removed unnecessary branching