Added render support for the rift. Some minor changes added.