Add ?. operator to avoid NullpointerExceptions