Added 'linger' functionality.