Added support for repository hash.
Removed wrong changes in the last commit.