Removing osgi name. The main function highlighted to new method.