Looks bad but works