Little refactoring
Check for buffer overlap