Beginning of working with phone to get speed