Added finish() method to Application