Some code modifications. Bind as data attribute.