My prefix has a purpose
My suffix together with two letters is a homophone for somewhere dark and deserted
My infix is an atom gained an electron
I am an adverb and I have a goal in mind
What word am I?
Clue 1: (Given 7 hours later)
What the word is can be deduced by the first and last line