Add clear all registers function