Added reflog functionality