Are you implementing technique number 4 described here ?