Rearrange the order for WakeOnLan and use difference timeouts depending on networktype