Adds bye() func. Seems must solve #2