Added functions for google cardboard.