Removed slug. Better handling of errors.