Fixed times function
Added method for creating nodes