Implement optimizer, but it actually makes things worse..