Use platform param instead of if-statements

Signed-off-by: Walker Crouse <walkercrouse@hotmail.com>