Use variable instead of querying platform repeatedly.