Changing execution profile at runtime

Here is my solution: