Removing this reference in function