Added source for slug function