Function to render speed