Added function for retrieving a scritable reference from it's ID