Added quick mod for smallest element