Create Function

Moved request into function to call