Terrible hack of a bat implementation