Trying to figure out bugs