Allows for passing of custom length parameter