Added hype() fuction and template