Updated so slugs are only generated if there is no value