Changed completeness function, visa function does not work