Changed slug function call