Added easier transition support and a error function for later usage