Added function code to Thrower.