Add property handler code and support simple length properties