Refactored slug stuff.