Finalizing script with goto table working fully