Adding hopper code