Made separate functions to initialize each frame