10/22 Added offset. Code needs improvement.