Fixes #2 + use plugin function to get slug