Implementing a poor's man overflow snaping behavior.