Removing useless pan method.