Separate return function into variables, this returned -1 on last test