Added eneter frame loop