Bug fix and added a pause

Signed-off-by: Edwin van Nuil <edwin@vannuil.com>