Changed some functionality of version check