Added missing userdata wrapping and removed debug prints.