Add code for frame and animations