Some fixes, started profile engine.