How to create a proxy