Switched to non-deprecated API for Props class.