First version that tries to preserve the startup project status. More testing needed!