Removed local variable in favour of supplied parameter