Blarg first attempt at the middle of three algo