Added error checking start