Fixed UI thread issues.
Added visual config item for execution on compile.