Removes rprompt and simplifies lhs