Removed debugging funcctions