Added function to rebuild all