Changed proxy to a trait. Added dependency