Added working method
Slight modification