First try of implementation logic