Looks kind of hackish, but it works! Ship it!