Wait for data to be ready

Added @ready() condition so data is available.