Added branch as an optional argument