First try at adding function.
Ignored swp.