Added sequence length parameter to api