Improved frame parsing (off by one). More logs.