Trying to implement peanuts