Most of tile related functions OK