Moved prompt code to utils