Using var instead of const :( due to IE issues.