Added check_swap and check_mysql