Core implementation