Potential final code