Implement dynamic seamphore