Cleaned up sink memory usage.