Added iseprompt
Added custom prompt function