Fixed incorrect function name and slightly restructured how the public interface of TaskStack is created.