Changed the stub call to use the allow function