Simple queue system to handle callbacks