Changed result/remainder mix up
Adding remainder to remainder element