Refactoring.Added support for HEAD (for ivy).