Changed get_n and similar to use collect