Corrected incorrect length arguments to collect. Also, 'target' is a keyword in Fortan and should not be used as a variable