Initializing solver