Added a max limit of 8 on length parameter. Updated documentation.