Removed unneeded check from promptcommand