GPMC reworked, tested with gradient ascent