First pass at creating promisify function