Didn't import the platform module, which would cause errors.