Fixed: removed debugging function