Changed 'read' statements to 'read -p' to fix a bug