Re-factored code. ROM extension associated to application.