Made this in Flash a while back.