Added support for changing parent number