Save to the correct directory