I hated it, so I changed it.

Also, I saved memory by removing 'success' variable