Optimalization and Debugging