Added todo example. Performance improvements.