Replaced length function with virtual length property