Added length helper

Added length helper