Make a function to extract VX, VY, instead of duplicating code everywhere