WPS functions file