Added code for materials, getting multiple tiles