Implementing GetRecord system function.