Extracting functions in Robot