Added refreshPosition method