Removed unnecessary var left in from earlier version