Improves tile parsing logic.