Changed parameters of blocks. Now it gives a copy of block objects ( objects at heap, not at stack) to methods in classes: ServiceAgent, RemoteDataProvider, DataProvider.