Modificationby jacopo. Added position in frame