Using .apply with the correct reference now