Whitespace
Add some debugging
Don't allow negative offsets