Added ability to rebase before finishing task.