Added error asseration