Integration of samples