Change length methods to use a long