Psuedocode in utils