Add get Position function