Added missing perspective function.