Removed 'val' from function parameter.