Cleaned up block submission logic.