Refined functions