Dumbed-down some code to work with Postbox. Except it still doesn't work with Postbox.