Added extensions code.