Not a biggie, but I'd probably have moved this partContainer to the end of the method just before setAtoms (I was expecting it to be used inside the loop somewhere)