Code seems to be working for O2 with 3-21G