Fixed bug with sleeping in getDataSamplesAction()