Function deleted

This is just a code refactor