Adding more flexible mesh setup