Attempting to figure out bugs