Fixed forward declerations.
MPI working.