Moved speedtest variables and functions to Speedtest class.