Updating prefix
Putting all the pieces together