Updated to use generics instead of Object
Added some tests for custom stack size.