Sample environments and sample handling