Using self to access the current resource