Add on first frame function.