Started to make targets recursive functions into one, not functional yet