Add solution to hash function.