Removed XD test function