Use of memory and file advice
Move to frame in seperate function