Implements `readClip()` function