Modified post function