onStart is only called if it exists and is a function.