Need to pass self into function.