Fixed getposition and runchase signature to appropriately indicate pass by reference