Added custom partial support to references