Fix get_update function.

Use exec to pull the code.