Made a more intelligent frame object. Playing with different object declaration