Removed overloaded functions and added SID size.
Added basic cleanup algorithm