Added instance variables for positioning nodes