Refactored the code so you have a client or server recipe. Tested and works on my current infrastructure.