Also takes xyz files as input.
Bug fix.