The barrel is shaped to fit in a special opening of the instrument to which it is attached. The image can be focused by moving the eyepiece nearer and further from the objective. Most instruments have a focusing mechanism to allow movement of the shaft in which the eyepiece is mounted, without needing to manipulate the eyepiece directly.