Cleaned up DirectPlay and added two functions.