Removed duplication in node coordinate generation