Added createHash method