Implements ban functionality