Moved extendify call to top of code