Added logic to actually execute mongod