Made the new changes for at run time compiling to the main activity.