Added error check and get entrance