Added new magic functions