You are given a sentence in Portuguese. Your job is to translate the Portuguese sentence into English.
Q: Ele preparou programas antecipando que isto aconteceria.
A:
He prepared programs anticipating this would happen.