Add setLocation method