Optimizations and adding a way to invoke a callback when complete