Some complicated codes

Added some comments just in case I don’t remember what it means in the
future