Trying this again, this time using the right functions.