Support bg position float numbers; refactor keyword selection