Add some location function