Finished the omelette function.