Added new yield implementation with signal handling