Removed all register-based code