Added implementation of new_prompt