Forgot to add self when calling function