Add transformPosition method