Little utils and receive refactoring.