Added first version of the itembased gl code.