Added readdata support.