Trying to speed up the RK calculations