The 2 for-loops in this method, should perhaps be placed in a separate method?
Make it more clear what the for-loops is doing as well..