Added code to fetch and install pkg update