Recent developments in the ATLAS pixel detector