This is how it should work before the NullPointerException