Cleaned up entry visa function

Removed old test code from entry helper function