Added generate coordinates V2 method.