Restored ready callback support which got reverted and commented out state.curTile.focus()