Adding variable padding for nodes