Alternative solution using third party package