Update function syntax to remove this