Fixed static method usage. Remove unused var.