Remove use of registers