Some improvements in the RIP class.