Reset previous code as the initial idea was trash.