Used onCreate instead of null check.