This image shows the order of execution.