Puts the upvotes back.

All credit on the code changes to @BukhariH.