Added logic to update packages initially