+1. The UI is using something similar as well.